package com.example.demo.dao.task;

import com.example.demo.po.report.Report;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TaskReportDao {
    Integer insertTaskReport(@Param(value = "tid")Integer tid, @Param(value = "rid")Integer rid);
    List<Report> selectReportByTask(@Param("tid") Integer tid, @Param("pageNumKey") int pageNum,
                                    @Param("pageSizeKey") int pageSize);
    List<Integer> selectRidByTid(Integer tid);
    List<Report> selectReportWithScore(@Param("tid") int tid,@Param("uid") int uid, @Param("pageNumKey") int pageNum,
                                       @Param("pageSizeKey") int pageSize);

    List<Report> selectAllReportsForSim(int rid,int tid);
}
